package com.byref.liteflowdemo.cmp.interdemo;

import com.yomahub.liteflow.core.NodeComponent;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @author BYREF
 */
@Component("iterError")
@Slf4j
public class IterErrorOpCmp extends NodeComponent {
    @Override
    public void process() throws Exception {
        Object currLoopObj = this.getCurrLoopObj();
        log.info("开始执行ERROR-Op: {}", currLoopObj);
        throw new RuntimeException("ERROR-Op ex");
    }
}
